using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace eCloudEdit
{
    public partial class NewDeviceForm : Form
    {
        public int nProType = 1;
        public NewDeviceForm()
        {
            InitializeComponent();
        }
        public void DisableRTUDevice()
        {
            radioButton2.Enabled = false;
            radioButton2.Visible = false;
        }
        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void radioButton1_Click(object sender, EventArgs e)
        {
            nProType = 1;
        }

        private void radioButton2_Click(object sender, EventArgs e)
        {
            nProType = 2;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}